const state = {
  ads: {},
}

const mutations = {
  SET_ADS_OBJ: (state, data) => {
    state.ads = data
  },
}

const actions = {
  // 写入昵称和头像
  setAdsObj({ commit }, data) {
    commit('SET_ADS_OBJ', data)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
